﻿namespace WillSortSimulation;

public class School
{
    public int SchoolValue;
    public int SchoolID;

    public int StudentWanted;
    public List<int> GotPlansIds = new List<int>();

    public int GetNeedStudent()
    {
        return StudentWanted - GotPlansIds.Count;
    }
    
    public static int CompareValue(School a, School b)
    {
        return a.SchoolValue - b.SchoolValue;
    }
    
    public void Dump()
    {
        Console.WriteLine($"ID: {SchoolID}, \t Value: {SchoolValue}, \t Wanted: {StudentWanted}");
    }
}